<template>
  <BaseTable api-url="/admin/base/sys/user/page">
    <el-table-column type="selection" />
    <el-table-column label="头像" prop="headImg">
      <template #default="{ row }">
        <el-avatar :size="50" :src="row.headImg" />
      </template>
    </el-table-column>
    <el-table-column label="用户名" prop="username" />
    <el-table-column label="姓名" prop="name" />
    <el-table-column label="昵称" prop="nickName" />
    <el-table-column label="部门名称" prop="departmentName" />
  </BaseTable>
</template>

<script lang="ts" setup>
import BaseTable from '@/components/base-table/index.vue'
</script>
